gdk: Remove check for source window
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 20 Aug 2014 19:31:15 +0000 (21:31 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 1 Sep 2014 17:17:53 +0000 (19:17 +0200)
This is backend dependent, on wayland there is no such source window,
not even on local DnD situations.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

gdk/gdkdnd.c

index 6482b0b0e15eca4858ef10f9cf00270b27ce470b..2957fe2663e08f680287757cee62788761ed03b7 100644 (file)
@@ -451,7 +451,6 @@ GdkAtom
 gdk_drag_get_selection (GdkDragContext *context)
 {
   g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), GDK_NONE);
-  g_return_val_if_fail (context->source_window != NULL, GDK_NONE);
 
   return GDK_DRAG_CONTEXT_GET_CLASS (context)->get_selection (context);
 }